package xkp.lesson5;

public class Demo1 {
	public static void main(String[] args) {
		//此时Person不能被直接实例化
		//Person person = new Person();
		Person person = new Children();
		//此处显然要执行children中的eat。
		person.eat();
		
		MyInterface2 myInterface2 = new Bird();
		MyInterface2 myInterface22 = new Airplane();
		
		myInterface2.fly();
		myInterface22.fly();
	}

}
